import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import naive from 'naive-ui'
import { setupNaiveDiscreteApi } from '@/plugins/naiveDiscreteApi'
import router from './router'
import { createRouterGuard } from '@/router/router-guard'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'


const pinia = createPinia()
pinia.use(piniaPluginPersistedstate);

const app = createApp(App)

app.use(naive)
setupNaiveDiscreteApi()

app.use(pinia)
createRouterGuard(router)
app.use(router)

app.mount('#app')
